import request from '@/utils/request'

//获取用户信息-分页列表
// export const getuserpageList = (page,limit,searchParams) => {
//     return request.get(`/admin/acl/user/${page}/${limit}?inputUser=${searchParams}`
//       )
// };
//获取用户信息-分页列表
export const getuserpageList = (page,limit, searchParams) => {
  return request.get('/admin/acl/user' + `/${page}/${limit}`, {
    params: searchParams
  })
}
//点击添加或者修改发送请求
export const addOrupdateUsermsg =(user) => {
  if(user.id){
     return request.put('/admin/acl/user/update',user);
  }else 
     return request.post('/admin/acl/user/save',user);
}
//删除某一条用户信息
export const delateOneUser = (id) => {
  return request.delete('/admin/acl/user/remove' + `/${id}`);
};
//批量删除所选的用户信息
export const dltSearchUser = (ids) => {
  return request.delete('/admin/acl/user/batchRemove', {
    data: ids
  });
};

